package mn.idax.exchange.otc.service;

import org.springframework.jms.JmsException;
import org.springframework.jms.core.MessageCreator;

/**
 * @Auther: dison
 * @Date: 2018/8/3 09:57
 * @Description:
 */
public interface MqService {

    /**
     *
     * 功能描述: MQ消息发送
     *
     * @param: destinationName topic名称
     * @param: textMessage 消息内容
     * @return:
     * @auther: dison
     * @date: 2018/8/3 9:58
     */
    void send(String destinationName, String textMessage) throws JmsException;

    void sendJSONByEntity(String destinationName, Object entity) throws JmsException;
}
